"""
@File    :   test.py
@Time    :   2024/03/01 15:20:34
@Author  :   glx 
@Version :   1.0
@Contact :   18095542g@connect.polyu.hk
@Desc    :   None
"""

# here put the import lib
import main
import pathlib
import json

if __name__ == "__main__":
    data_url = "data\json_data"
    for test_data_url in pathlib.Path(data_url).glob("*.json"):
        with open(test_data_url, "r") as f:
            input_data = json.load(f)

        print(f"test data: {test_data_url}".center(100, "="))
        main.main(input_data, rf"test_result\{test_data_url}")
